package com.sairobo.admin.modules.srblive.utils;

import com.sairobo.base.common.utils.PropertyUtils;

import java.util.ResourceBundle;

/**
 * 知心云直播Property具类
 */
public final class LivePropertyUtil extends PropertyUtils {
    private static ResourceBundle resourceBundle;
    public static LivePropertyUtil instance;

    protected ResourceBundle getResource() {
        if (resourceBundle != null) {
            return resourceBundle;
        }else {
            //eq:"config/live"
            resourceBundle = ResourceBundle.getBundle("config/live");
        }
        return resourceBundle;
    }

    static {
        instance = new LivePropertyUtil();
        resourceBundle = ResourceBundle.getBundle("config/live");
    }

    //清空后，可以重新加载
    public static void clear() {
        resourceBundle = null;
    }

}
